<template>
  <div id="app">
    <template v-if="keepAlive">
      <keep-alive>
        <router-view />
      </keep-alive>
    </template>
    <router-view v-if="!keepAlive" />
  </div>
</template>

<script>
import { mapState } from 'vuex'
export default {
  computed: {
    ...mapState([
      'keepAlive'
    ])
  }
}
</script>
<style lang="less">
@import '~@assets/style/reset.less';
@import '~@assets/style/global.less';
</style>
